package game.ghostleg;

import java.io.Serializable;
import java.util.ArrayList;

public class SocketData implements Serializable {
	// type specifies object
	// NULL			= -1;
	// playerID		= 0;
	// playerNum	= 1;
	// startPos		= 2;
	// result		= 3;
	// an Bridge	= 4;
	// items		= 5;
	// isStartVis	= 6;
	// isItemVis	= 7;
	// Interval		= 8;
	// Interval[]	= 9;
	// time			= 10;
	// outsoc firm	= 11;
	// paint		= 12;
	// err msg		= 99;
	int type;
	Serializable obj;
	int val_int;
	boolean val_bool;
	
	public SocketData() {
		this.type=-1;
		this.obj=null;
	}
	
	public SocketData ( int type, Serializable obj ) {
		this.type	= type;
		this.obj	= obj;
	}
	
	public SocketData ( int type, int val ) {
		this.type		= type;
		this.val_int	= val;
	}
	
	public SocketData ( int type, boolean val ) {
		this.type		= type;
		this.val_bool	= val;
	}
	
	public SocketData ( int type, Serializable obj, int val ) {
		this.type		= type;
		this.obj		= obj;
		this.val_int	= val;
	}

}